/*
 * Copyright (c) 2006, 2022, webrx.cn All rights reserved.
 *
 */
package cn.webrx;

/**
 * <p>Project: jse2204 - Demo
 * <p>Powered by webrx On 2022-09-13 08:12:06
 *
 * @author webrx [webrx@126.com]
 * @version 1.0
 * @since 17
 */
public class Demo {
    public static void main(String[] args) {
        show(6);
        System.out.println("----------");
        count(6);
    }

    public static void show(int i) {
        System.out.println(i);
        if (i > 0) show(--i);
    }

    public static void count(int i) {
        if (i == -1) return;
        count(--i);
        System.out.println(i + 1);
    }
}
